#ifndef TEXTTHREAD_H
#define TEXTTHREAD_H
#include <QThread>
#include <QString>
class TextThread : public QThread {
	Q_OBJECT
public:
	TextThread(const QString& text);
	TextThread(const int& handle);
	void run();
	void stop();
signals:
	void writeText(const QString&);
	void setHandle(const int&);
private:
	QString m_text;
	bool m_stop;
	int m_handle;
};
#endif // TEXTTHREAD_H